using System;
using System.Web.UI;
using Facebook.API;
using Facebook.WebControls;

public partial class MasterIFrame_Default : Page
{
	protected void Page_Load(object sender, EventArgs e)
	{
		FacebookAPI facebookAPI = ((CanvasIFrameMasterPage) Master).FacebookAPI;
		lblUser.Text = facebookAPI.GetUserInfo().Name;
		int numGroups = facebookAPI.GetGroups().Count;
		lblGroups.Text = "You are in " + numGroups + " group" + (numGroups == 1 ? "" : "s") + ".";
	}
}